package com.kakarote.admin.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @创建人 xuepengfei
 * @创建时间 2023/5/7
 * @描述
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wk_admin_fly_user")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AdminFlyUser对象", description = "飞书用户对应关系表")
public class AdminFlyUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("crm用户ID")
    private Long userId;


    @ApiModelProperty("订单创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;

    @ApiModelProperty("用户的union_id")
    private String unionId;

    @ApiModelProperty("用户的open_id")
    private String openId;
}
